package com.newcapec.erp.utils;

public class ValidationUtils {

    public static final String NAME_REGEX = "[a-zA-Z]\\w{1,8}";
    public static final String NAME_HiNT = "用户账号必须以字母开头，可以包含字母数字下划线，长度为2~8位！";

    public static final String PWD_REGEX = "(?![0-9]+$)(?![a-zA-Z]+$)[a-zA-Z0-9]{6,}";
    public static final String PWD_HiNT = "密码必须要有字母和数字，且最少不能少于6位！";

    public static final String NICK_REGEX = "[A-Z]{2,4}|[\u4e00-\u9fa5]{2,4}";
    public static final String NICK_HiNT = "姓名必须是2~4个大写字母或中文汉字！";

    public static final String TEL_REGEX = "[0-9]{11}";
    public static final String TEL_HiNT = "请输入正确的手机号！";

    public static final String EMAIL_REGEX = "[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+";
    public static final String EMAIL_HiNT = "请输入正确的邮箱！";

}
